//
//  ALUtils.h
//  ios-loan
//
//  Created by mac on 2018/3/28.
//  Copyright © 2018年 hxhg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ALUtilsMacro.h"

@interface ALUtils : NSObject
AL_AS_SINGLETON(ALUtils)
+(NSString *)filterStr:(NSString *)str;
+(NSString *)filterAllSpeStr:(NSString *)str;
/**
 *  通过font str 获得CGSize
 *
 *  @param str     str
 *  @param theFont font
 *
 *  @return 返回CGSize
 */
+(CGSize)getSizeByStr:(NSString *)str
              andFont:(UIFont *)theFont;
+(CGSize)getSizeByStr:(NSString *)str
              andFont:(UIFont *)theFont
              andRect:(CGSize)rect;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
- (BOOL)haveNetWork;

/**
 获取系统推送开关是否打开状态

 @return NO 为未打开  YES 为已经打开
 */
+ (BOOL)notificationSettingsIsOpen;


/**
 验证手机号是否格式正确

 @param mobil 手机号
 @return <#return value description#>
 */
+ (BOOL)checkMobil:(NSString *)mobil;
@end
